<?php

?>
<form method="post" action="<?php echo $html->url('/members/editProducer')?>">
<h3>Edit Producer Information</h3>
<?php echo $form->hidden('Member.member_id');?>
<fieldset>
<legend>Business Info</legend>
<?php
  if($current_user['auth_type']==AUTH_ADMIN){      
    echo $form->input('Producer.producer_id',array('size'=>"10",'maxlength'=>"5")), "\n"; 
    //echo '<p><label for="Member.mem_delch_discount">Delivery Charge Discount</label>' . $form->input('Member.mem_delch_discount') . '</p>' . "\n";
    //echo '<p><label for="Member.mem_discontinued">Membership Discontinued</label>' . $form->input('Member.membership_discontinued') . '</p>' . "\n";
	} else {
    echo $form->hidden('Producer.producer_id');
  }
?>
<?php echo $form->input('Member.business_name');?>
<?php echo $form->input('Member.work_address_line1',array('label'=>'Street Address', 'size'=>"25",'maxlength'=>"50"));?>
<?php echo $form->input('Member.work_address_line2',array('label' => 'Extended Address', 'size'=>"25",'maxlength'=>"50"));?>
<?php echo $form->input('Member.work_city',array('label' => 'City', 'size'=>"15",'maxlength'=>"30"));?>
<?php echo $form->input('Member.work_state',array('label' => 'State', 'size'=>"4",'maxlength'=>"2"));?>
<?php echo $form->input('Member.work_zip',array('label'=> 'Zip Code', 'size'=>"12",'maxlength'=>"10"));?>
<?php echo $form->input('Member.work_county',array('label' => 'County', 'size'=>"8",'maxlength'=>"20"));?>
<?php echo $form->input('Member.work_phone',array('label' => 'Phone', 'size'=>"15",'maxlength'=>"20"));?>
<?php echo $form->input('Member.home_page',array('size'=>"25",'maxlength'=>"50"));?>
</fieldset>
<fieldset>
<legend>Preferences</legend>
<?php echo $form->input('Producer.list_producer', array('type'=>'checkbox', 'label'=>'List Me')); ?>
<?php echo $form->input('Producer.pub_address', array('label'=>'Show My Address')); ?>
<?php echo $form->input('Producer.pub_email', array('label'=>'Show My Email')); ?>
<?php echo $form->input('Producer.pub_phonew', array('label'=>"Show My Phone Number")); ?>
<?php echo $form->input('Producer.pub_fax', array('label'=>'Show My Fax Number')); ?>
<?php echo $form->input('Producer.pub_web', array('label'=>'Show My Home Page')); ?>

</fieldset>
<?php echo $form->submit('Update!'); ?>
</form>
<!--<pre>
<?php //print_r($this->data);?>
</pre>-->
